/**
 * state 取参
 *    props.location.state
 */

function InfoThree({ location: { state } }: any) {
  return (
    <div>
      <h4>详情</h4>
      <p>ID: {state.id}</p>
      <p>Name: {state.name}</p>
    </div>
  );
}

export default InfoThree;
